import request from '@/utils/request';

/**
 * 分页查询在线客户端
 * @param query
 * @returns {*}
 */
export function listClients(query) {
    return request({
        url: '/iot/mqtt/list',
        method: 'get',
        params: query
    })
}

/**
 * 获取全部节点
 * @returns {*}
 */
export function listNode() {
    return request({
        url: '/iot/mqtt/node',
        method: 'get'
    })
}

/**
 * 获取节点信息
 * @returns {*}
 */
export function listMonitorCurrent() {
    return request({
        url: '/iot/mqtt/monitorCurrent',
        method: 'get'
    })
}

/**
 * 踢除某个客户端下线
 * @param clientId
 * @returns {*}
 */
export function clients(clientId) {
    return request({
        url: '/iot/mqtt/clients/' + clientId,
        method: 'get'
    })
}